From f4baa51f4937f1a290e06b3a4cc9766116e74d1b Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Mon, 10 Dec 2007 19:49:52 +0000 Subject: [PATCH] Fix the check for no changes to position and size. 2007-12-10 Richard Hult * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal): Fix the check for no changes to position and size. svn path=/trunk/; revision=19147 --- ChangeLog | 5 +++++ gdk/quartz/gdkwindow-quartz.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f4b7e2e2a..164a55cfc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-10 Richard Hult + + * gdk/quartz/gdkwindow-quartz.c: (move_resize_window_internal): + Fix the check for no changes to position and size. + 2007-12-10 Richard Hult * gdk/quartz/GdkQuartzView.c: Ignore drawRect calls with zero diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index a5e2274a62..62719e0936 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -1162,10 +1162,10 @@ move_resize_window_internal (GdkWindow *window, impl = GDK_WINDOW_IMPL_QUARTZ (private->impl); - if ((x == private->x) && - (y == private->y) && - (width == impl->width) && - (height == impl->height)) + if ((x == -1 || (x == private->x)) && + (y == -1 || (y == private->y)) && + (width == -1 || (width == impl->width)) && + (height == -1 || (height == impl->height))) { return; } -- 2.30.2